#ifndef TCP_CLIENT_H
#define TCP_CLIENT_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include <QDebug>
#include <QString>

QT_BEGIN_NAMESPACE
namespace Ui { class tcp_client; }
QT_END_NAMESPACE

class tcp_client : public QWidget
{
    Q_OBJECT

public:
    tcp_client(QWidget *parent = nullptr);
    ~tcp_client();

private slots:
    void newConnection_SLOT();
    void socketReadReadySLOT();
    void on_pushButton_close_client_clicked();
    void on_pushButton_open_client_clicked();
    void on_pushButton_send_data_clicked();

private:
    Ui::tcp_client *ui;
    QTcpServer *tcpSever;
    QTcpSocket *tcpSocket;


};
#endif // TCP_CLIENT_H
